dojo.require('dijit._Widget');

dojo.declare("mfTabWidget", [dijit._Widget], {
	constructor: function(params, srcNodeRef){
			this._srcObj = dojo.isObject(params) ? params : dojo.byId(params);
		},
	buildRendering: function() {
			var _hoverClassName = this.liHoverClass;
			var _activeClassName = this.liActiveClass;
			dojo.query(this._srcObj)
				.addClass(this.ulClass)
				.query('li:not(.'+_activeClassName+')')
					.onmouseenter(function () {
							dojo.query(this).addClass(_hoverClassName);
						})
					.onmouseleave(function () {
							dojo.query(this).removeClass(_hoverClassName);
						});
			dojo.create('div',{className: 'tabListSpacer'},this._srcObj,'after');
		},
	ulClass: 'tabList stnd_font',
	liActiveClass: 'active',
	liHoverClass: 'hover'
	});
